package com.yourcompany.api.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;

@Data
@EqualsAndHashCode(callSuper = true)
@TableName("vue_menu")
@Schema(description = "菜单实体")
public class Menu extends BaseEntity {

    @Schema(description = "父级菜单ID，0表示顶级菜单")
    private Long parentId;

    @Schema(description = "菜单名称")
    private String name;

    @Schema(description = "菜单标识，用于权限控制")
    private String code;

    @Schema(description = "菜单路径，用于前端路由")
    private String path;

    @Schema(description = "前端组件路径")
    private String component;

    @Schema(description = "菜单图标")
    private String icon;

    @Schema(description = "排序值，数值越小越靠前")
    private Integer sort;

    @Schema(description = "状态：0-禁用 1-启用")
    private Boolean status;

    @Schema(description = "是否在菜单中显示：0-否 1-是")
    private Boolean isVisible;

    @Schema(description = "创建人ID")
    private Long creatorId;

    @Schema(description = "修改人ID")
    private Long modifierId;
} 